package com.cpumonitor;

/**
 * Created with IntelliJ IDEA.
 * ClassName: ProcessLinuxInfo
 * Description: TODO
 * User: kevin
 * Date: 2018-11-22
 * Time: 下午2:06
 */
public class ProcessLinuxInfo extends ProcessInfo {

    //进程ｉｄ
    private long pid;

    //进程所属
    private String user;

    //进程优先级
    private String priority;

    //nice 值
    private  long nice;

    //进程使用的虚拟内存总量，单位kb。VIRT=SWAP+RES
    private long virt;

    //进程使用的、未被换出的物理内存大小，单位kb。RES=CODE+DATA
    private String res;

    //共享内存大小，单位kb
    private String shr;

    //进程状态
    private char s;

    //上次更新到现在的CPU时间占用百分比
    private double cpu;

    //进程使用的物理内存百分比
    private double mem;

    //进程使用的CPU时间总计，单位1/100秒
    private String time;

    //命令名/命令行
    private  String command;


    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public long getNice() {
        return nice;
    }

    public void setNice(long nice) {
        this.nice = nice;
    }

    public long getVirt() {
        return virt;
    }

    public void setVirt(long virt) {
        this.virt = virt;
    }

    public String getRes() {
        return res;
    }

    public void setRes(String res) {
        this.res = res;
    }

    public String getShr() {
        return shr;
    }

    public void setShr(String shr) {
        this.shr = shr;
    }

    public char getS() {
        return s;
    }

    public void setS(char s) {
        this.s = s;
    }

    public double getCpu() {
        return cpu;
    }

    public void setCpu(double cpu) {
        this.cpu = cpu;
    }

    public double getMem() {
        return mem;
    }

    public void setMem(double mem) {
        this.mem = mem;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }
}
